FROM python:3.6
EXPOSE 8002

RUN mkdir /code
COPY . /code

WORKDIR /code
RUN pip3 install -r requirements.txt -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
RUN chmod +x docker-entrypoint.sh
ENTRYPOINT ["./docker-entrypoint.sh"]
